package com.cashmama.market.api.application.controller.actions;


import com.cashmama.market.api.domain.enums.UserProfileActionEnum;
import com.cashmama.market.api.domain.enums.UserProfileActionStatusEnum;

/**
 * Created by linchengyu on 17/2/27.
 */
public class UserProfileActionVO {

    /**
     * 图标URL地址
     */
    private String iconUrl;

    /**
     * 个人资料标题
     */
    private String titleText;

    /**
     * 个人资料提示信息
     */
    private String tipText;

    /**
     * 认证状态 : 0 : 未认证；1 : 已认证；2 : 认证过期；3 : 未填写；4 : 已填写；
     */
    private Integer status;

    /**
     * 认证状态文案
     */
    private String statusText;

    /**
     * 跳转地址
     */
    private String schemeUrl;

    /**
     * 是否可点选 : true : 可点选；false : 不可点选；
     */
    private Boolean enable = true;

    /**
     * 不可点选提示信息
     */
    private String disableText;

    /**
     * 二级标题 提示
     */
    private String tip;
    /**
     * 认证状态枚举
     */
    private UserProfileActionStatusEnum userProfileActionStatusEnum;

    public UserProfileActionVO(UserProfileActionEnum userProfileActionEnum) {
        iconUrl = userProfileActionEnum.getIcon();
        titleText = userProfileActionEnum.getTitle();
        tipText = userProfileActionEnum.getTip();
    }

    public UserProfileActionVO(UserProfileActionEnum userProfileActionEnum, String iconUrl) {
        this.iconUrl = iconUrl;
        this.titleText = userProfileActionEnum.getTitle();
        this.tipText = userProfileActionEnum.getTip();
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public String getTitleText() {
        return titleText;
    }

    public void setTitleText(String titleText) {
        this.titleText = titleText;
    }

    public String getTipText() {
        return tipText;
    }

    public void setTipText(String tipText) {
        this.tipText = tipText;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getSchemeUrl() {
        return schemeUrl;
    }

    public void setSchemeUrl(String schemeUrl) {
        this.schemeUrl = schemeUrl;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public String getDisableText() {
        return disableText;
    }

    public void setDisableText(String disableText) {
        this.disableText = disableText;
    }

    public String getStatusText() {
        return statusText;
    }

    public void setStatusText(String statusText) {
        this.statusText = statusText;
    }

    public void setUserProfileActionStatusEnum(UserProfileActionStatusEnum userProfileActionStatusEnum) {
        this.userProfileActionStatusEnum = userProfileActionStatusEnum;
        this.status = userProfileActionStatusEnum.getCode();
        this.statusText = userProfileActionStatusEnum.getDesc();
    }

    public String getTip() {
        return tip;
    }

    public UserProfileActionVO setTip(String tip) {
        this.tip = tip;
        return this;
    }
}
